package cn.sc.allinpay.allfavour.business.setsettle;

import android.os.Bundle;
import android.support.v7.widget.AppCompatTextView;
import android.view.View;

import butterknife.BindView;
import butterknife.OnClick;
import cn.sc.allinpay.allfavour.R;
import cn.sc.allinpay.allfavour.base.activity.BaseActivity;

/**
 * 结算
 */
public class SetSettleActivity extends BaseActivity<SetSettleContract.View, SetSettleContract.Presenter> implements SetSettleContract.View {



    @BindView(R.id.tvMcthName)
    AppCompatTextView tvMcthName;

    @BindView(R.id.tvTerNo)
    AppCompatTextView tvTerNo;

    @BindView(R.id.tvEmpNo)
    AppCompatTextView tvEmpNo;

    @BindView(R.id.tvEmpName)
    AppCompatTextView tvEmpName;

    @BindView(R.id.tvSettleTime)
    AppCompatTextView tvSettleTime;

    @BindView(R.id.tvSettleTime2)
    AppCompatTextView tvSettleTime2;

    @BindView(R.id.tvSaleNum)
    AppCompatTextView tvSaleNum;

    @BindView(R.id.tvSale)
    AppCompatTextView tvSale;

    @BindView(R.id.tvVoidNum)
    AppCompatTextView tvVoidNum;

    @BindView(R.id.tvVoid)
    AppCompatTextView tvVoid;

    @BindView(R.id.tvPaid)
    AppCompatTextView tvPaid;

    @BindView(R.id.tvMemberDis)
    AppCompatTextView tvMemberDis;

    @BindView(R.id.tvCoupon)
    AppCompatTextView tvCoupon;

    @BindView(R.id.tvWallet)
    AppCompatTextView tvWallet;

    @BindView(R.id.tvCash)
    AppCompatTextView tvCash;

    @BindView(R.id.tvOnline)
    AppCompatTextView tvOnline;

    @BindView(R.id.tv0Count)
    AppCompatTextView tv0Count;

    @BindView(R.id.tv0Sale)
    AppCompatTextView tv0Sale;

    @BindView(R.id.tv1Count)
    AppCompatTextView tv1Count;

    @BindView(R.id.tv1Sale)
    AppCompatTextView tv1Sale;

    @BindView(R.id.tv2Count)
    AppCompatTextView tv2Count;

    @BindView(R.id.tv2Sale)
    AppCompatTextView tv2Sale;

    @BindView(R.id.tv3Count)
    AppCompatTextView tv3Count;

    @BindView(R.id.tv3Sale)
    AppCompatTextView tv3Sale;

    @BindView(R.id.tv4Count)
    AppCompatTextView tv4Count;

    @BindView(R.id.tv4Sale)
    AppCompatTextView tv4Sale;

    @BindView(R.id.tv5Count)
    AppCompatTextView tv5Count;

    @BindView(R.id.tv5Sale)
    AppCompatTextView tv5Sale;

    @BindView(R.id.tv6Count)
    AppCompatTextView tv6Count;

    @BindView(R.id.tv6Sale)
    AppCompatTextView tv6Sale;

    @BindView(R.id.tvTotalCount)
    AppCompatTextView tvTotalCount;

    @BindView(R.id.tvTotalSale)
    AppCompatTextView tvTotalSale;

    @BindView(R.id.tv7Count)
    AppCompatTextView tv7Count;

    @BindView(R.id.tv7Sale)
    AppCompatTextView tv7Sale;


    @Override
    protected int layoutId() {
        return R.layout.activity_set_settle;
    }

    @Override
    protected void layoutTitle(View top, AppCompatTextView left, AppCompatTextView title, AppCompatTextView right) {
        title.setText("结算");
    }

    @Override
    protected SetSettleContract.Presenter bindPresenter() {
        return new SetSettlePresenter();
    }

    @Override
    protected void layoutContent(Bundle savedInstanceState) {

    }



    @OnClick(R.id.btnSettle)
    public void onClick(View v) {
        presenter.settlement();
    }

    @Override
    public void showBasicInfo(String tvMcthName, String tvTerNo, String tvEmpNo, String tvEmpName) {
        this.tvMcthName.setText(tvMcthName);
        this.tvTerNo.setText(tvTerNo);
        this.tvEmpNo.setText(tvEmpNo);
        this.tvEmpName.setText(tvEmpName);
    }

    @Override
    public void showSettleTime(String tvSettleTime, String tvSettleTime2) {
        this.tvSettleTime.setText(tvSettleTime);
        this.tvSettleTime2.setText(tvSettleTime2);
    }

    @Override
    public void showSale(String tvSaleNum, String tvSale) {
        this.tvSaleNum.setText(tvSaleNum);
        this.tvSale.setText(tvSale);
    }

    @Override
    public void showVoid(String tvVoidNum, String tvVoid) {
        this.tvVoidNum.setText(tvVoidNum);
        this.tvVoid.setText(tvVoid);
    }

    @Override
    public void showPaid(String tvPaid) {
        this.tvPaid.setText(tvPaid);
    }

    @Override
    public void showMemberDis(String tvMemberDis) {
        this.tvMemberDis.setText(tvMemberDis);
    }

    @Override
    public void showCoupon(String tvCoupon) {
        this.tvCoupon.setText(tvCoupon);
    }

    @Override
    public void showWallet(String tvWallet) {
        this.tvWallet.setText(tvWallet);
    }

    @Override
    public void showCash(String tvCash) {
        this.tvCash.setText(tvCash);
    }

    @Override
    public void showOnline(String tvOnline) {
        this.tvOnline.setText(tvOnline);
    }

    @Override
    public void showtv0(String tv0Count, String tv0Sale) {
        this.tv0Count.setText(tv0Count);
        this.tv0Sale.setText(tv0Sale);
    }

    @Override
    public void showtv1(String tv1Count, String tv1Sale) {
        this.tv1Count.setText(tv1Count);
        this.tv1Sale.setText(tv1Sale);
    }

    @Override
    public void showtv2(String tv2Count, String tv2Sale) {
        this.tv2Count.setText(tv2Count);
        this.tv2Sale.setText(tv2Sale);
    }

    @Override
    public void showtv3(String tv3Count, String tv3Sale) {
        this.tv3Count.setText(tv3Count);
        this.tv3Sale.setText(tv3Sale);
    }

    @Override
    public void showtv4(String tv4Count, String tv4Sale) {
        this.tv4Count.setText(tv4Count);
        this.tv4Sale.setText(tv4Sale);
    }

    @Override
    public void showtv5(String tv5Count, String tv5Sale) {
        this.tv5Count.setText(tv5Count);
        this.tv5Sale.setText(tv5Sale);
    }

    @Override
    public void showtv6(String tv6Count, String tv6Sale) {
        this.tv6Count.setText(tv6Count);
        this.tv6Sale.setText(tv6Sale);
    }

    @Override
    public void showtv7(String tv7Count, String tv7Sale) {
        this.tv7Count.setText(tv7Count);
        this.tv7Sale.setText(tv7Sale);
    }

    @Override
    public void showtvTotal(String tvTotalCount, String tvTotalSale) {
        this.tvTotalCount.setText(tvTotalCount);
        this.tvTotalSale.setText(tvTotalSale);
    }
}
